#include "my_task.h"
TimerHandle_t monitor_timer_handle;
TimerHandle_t protect_timer_handle; 
int count_ms=60;
void my_task(void)
{
   // xTaskCreate(BMS_Text,"BMS_test",128,NULL,10,NULL);//测试任务
   // xTaskCreate(BMS_Monitor,"BMS_Monitor",128,NULL,9,NULL);//监控任务
    xTaskCreate(BMS_protect,"BMS_protect",128,NULL,9,NULL);//保护任务
    monitor_timer_handle=xTimerCreate("monitor_timer",250,pdTRUE,(void*)1,monitor_timer_Callback);
    xTimerStart(monitor_timer_handle,portMAX_DELAY);
    protect_timer_handle=xTimerCreate("protect_timer",count_ms,pdFALSE,(void*)2,protect_timer_Callback);
    
}

